package com.theo.mapper;

import com.theo.entity.TripInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
@Repository
public interface TripInfoMapper extends BaseMapper<TripInfo> {

    int saveTripInfo(TripInfo tripInfo);

    int deleteTripInfo(Integer id);

    int updateTripInfo(Integer id);

    TripInfo queryTripInfo(Integer id);

    List<TripInfo> queryAllTripInfo();

    List<TripInfo> queryAllByDate(String date);

    List<TripInfo> queryAllByTripType(Integer type);

    List<TripInfo> queryAllByLimit(Map<String,Object> map);

}
